{include file=header.html}
<script type="text/javascript" language="javascript" src="{lib file=jquery-1.6.3.min.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.ui/jquery.ui.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/jquery.funkyUI.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
<script type="text/javascript">
$(function(){
	$("#country_batch #country_arr").click(function(){
		var _this=$(this);
		var c_name=_this.attr('c_name');
		if($('#country_batch .checkall_'+c_name).is(':checked')){
			$('.checkitem_children_'+c_name).attr('checked','checked');
		}else{
			$('.checkitem_children_'+c_name).removeAttr('checked');
		}
	});
});
</script>
<style type="text/css">
input {
	vertical-align: -5px;_vertical-align: -1px;margin-right: 5px
}
</style>
<body>
<div class="sub-body">
<div class="tab-frame" style="width:900px;">
<div class="tab-title-1">
<span>{$lang.assign_sys_sample}</span>
</div>
<form id="assignform" action="" method="post">
	<table width="100%" cellspacing="0" cellpadding="0" class="tab-display">
		<tr>
                <th align="right">
                    {$lang.sel_country}:&nbsp;&nbsp;</th>
                <td align="left">
                <div id="country_batch">
					<!-- {foreach from=$country_list item=countrys} -->
					<input type="checkbox" c_name="{$countrys.country}" id="country_arr" class="checkall_{$countrys.country}" />{$countrys.country}
					<div style="margin-left: 20px;">
					<!-- {foreach from=$countrys.user_list item=consumers name=cu} -->
						<input class="checkitem_children_{$countrys.country}" name="consumer_arr_id[]" type="checkbox" value="{$consumers.user_id}" />&nbsp;{$consumers.user_name}&nbsp;
						<!-- {if ($smarty.foreach.cu.iteration)%10==0} -->
						<br/>
						<!-- {/if} -->
					<!-- {/foreach} -->
					</div>
					<!-- {/foreach} -->
				</div>
				</td>
        </tr>
        <tr>
            <th></th>
            <td align="left">
                <input class="btn-2" type="submit" name="Submit" value="{$lang.submit}" />&nbsp;&nbsp;
                <input class="btn-2" type="reset" name="reset" value="{$lang.reset}" /></td>
        </tr>
	</table>
</form>
</div>
</div>
</body>
</html>